<h3>Rubrike</h3>

<ul>

    <?php

        foreach($columns as $column){

        ?><li><?=$column['name'];?>
            <?  if($this->datam->countSubcolumnsByColumn($column['id'])>0){ ?>

                <ul><?                    
                        $subcols = $this->datam->getSubcolumnsByColumn($column['id']);
                        foreach($subcols as $subcol){
                        ?><li style="padding-left: 13px"><?=$subcol['name'];?></li>    
                        <?}?>  
                </ul>

                <?}?>

        </li><?

        }

    ?>

</ul>